package com.flux.core.dispatcher;

/**
 * 网络请求调度
 * Created by chenxunlin01 on 2017/10/11.
 */

public abstract class NetworkCallRunnable<R> {

    public void onPreTraktCall() {
    }

    public abstract R doBackgroundCall() throws Exception;

    public abstract void onSuccess(R result);

    public abstract void onError(Exception re);

    public void onFinished() {
    }
}
